package com.heima.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.pojo.VmType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface VmTypeMapper extends BaseMapper<VmType> {
    @Select("select count(1) from tb_vending_machine tvm where tvm.vm_type = #{id}")
    int queryVmCount(Integer id);
}
